.class public Lcom/nemustech/tiffany/world/TFResourceProvider;
.super Lcom/nemustech/tiffany/world/TFContentProvider;
.source "TFResourceProvider.java"


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/nemustech/tiffany/world/TFContentProvider",
        "<",
        "Ljava/lang/Integer;",
        ">;"
    }
.end annotation


# instance fields
.field private TAG:Ljava/lang/String;

.field private mResources:Landroid/content/res/Resources;


# direct methods
.method public constructor <init>(Landroid/content/res/Resources;)V
    .locals 1
    .parameter "resources"

    .prologue
    .line 10
    invoke-direct {p0}, Lcom/nemustech/tiffany/world/TFContentProvider;-><init>()V

    .line 6
    const-string v0, "ResourceProvider"

    iput-object v0, p0, Lcom/nemustech/tiffany/world/TFResourceProvider;->TAG:Ljava/lang/String;

    .line 11
    iput-object p1, p0, Lcom/nemustech/tiffany/world/TFResourceProvider;->mResources:Landroid/content/res/Resources;

    .line 12
    return-void
.end method

.method public constructor <init>(Landroid/content/res/Resources;[I)V
    .locals 0
    .parameter "resources"
    .parameter "list"

    .prologue
    .line 15
    invoke-direct {p0, p1}, Lcom/nemustech/tiffany/world/TFResourceProvider;-><init>(Landroid/content/res/Resources;)V

    .line 16
    invoke-virtual {p0, p2}, Lcom/nemustech/tiffany/world/TFResourceProvider;->setResourceList([I)V

    .line 17
    return-void
.end method


# virtual methods
.method protected applyContent(Lcom/nemustech/tiffany/world/TFObject;I)V
    .locals 3
    .parameter "object"
    .parameter "itemIndex"

    .prologue
    .line 27
    check-cast p1, Lcom/nemustech/tiffany/world/TFModel;

    .end local p1
    const/4 v0, 0x0

    iget-object v1, p0, Lcom/nemustech/tiffany/world/TFResourceProvider;->mResources:Landroid/content/res/Resources;

    invoke-virtual {p0, p2}, Lcom/nemustech/tiffany/world/TFResourceProvider;->getItem(I)Ljava/lang/Object;

    move-result-object p0

    .end local p0
    check-cast p0, Ljava/lang/Integer;

    invoke-virtual {p0}, Ljava/lang/Integer;->intValue()I

    move-result v2

    invoke-virtual {p1, v0, v1, v2}, Lcom/nemustech/tiffany/world/TFModel;->setImageResource(ILandroid/content/res/Resources;I)Lcom/nemustech/tiffany/world/TFError;

    .line 28
    return-void
.end method

.method public setResourceList([I)V
    .locals 2
    .parameter "list"

    .prologue
    .line 20
    const/4 v0, 0x0

    .local v0, i:I
    :goto_0
    array-length v1, p1

    if-ge v0, v1, :cond_0

    .line 21
    aget v1, p1, v0

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-virtual {p0, v1}, Lcom/nemustech/tiffany/world/TFResourceProvider;->addItem(Ljava/lang/Object;)Z

    .line 20
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    .line 23
    :cond_0
    return-void
.end method
